##
# docker-registry
#
# VERSION 
# 
# base image ubuntu 14.04
##

FROM ubuntu:14.04
MAINTAINER Sean<sean.snow@live.com>

#Add 163 sources.list
ADD sources.list /etc/apt/sources.list

# Install python env
RUN apt-get update && apt-get -y install build-essential python-dev libevent-dev python-pip liblzma-dev swig libssl-dev

# Install Docker Registry
RUN pip install docker-registry

# create config.yml
RUN cp /usr/local/lib/python2.7/dist-packages/config/config_sample.yml /usr/local/lib/python2.7/dist-packages/config/config.yml

# Define default command. 
CMD gunicorn --access-logfile - --debug -k gevent -b 0.0.0.0:5000 -w 1 wsgi:application

# 5000
EXPOSE 5000
